import { configureStore } from '@reduxjs/toolkit'
import user from './modules/user'
import config from './modules/config'
const store = configureStore({
  reducer: {
    user,
    config
  },
  devTools: true
})

// types
export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch

export default store
